<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Illuminate\Foundation\Auth\User as Authenticatable;

class Manager extends Authenticatable
{
    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'managers';

    protected $fillable = [
        'name', 'password','email', 'level',
    ];

    protected $hidden = [
        'password', 'remember_token',
    ];


    /**
     * 登录验证规则
     * @return [type] [description]
     */
    public static function rules()
    {
        return [
            'name' => 'required',
            'password' => 'required'
        ];
    }
}
